﻿<html xmlns="http://www.w3.org/1999/xhtml" lang="utf-8">
<html>   
<head>   
<title>发货清单</title>   
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">   
<link href="<?php echo base_url()?>css/general.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url()?>css/main.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<?php echo base_url()?>js/jquery.js"></script>

 
<style>   
.tdp   
{   
border-bottom: 1 solid #000000;   
border-left: 1 solid #000000;   
border-right: 0 solid #ffffff;   
border-top: 0 solid #ffffff;   
}   
.tabp   
{   
border-color: #000000 #000000 #000000 #000000;   
border-style: solid;   
border-top-width: 2px;   
border-right-width: 2px;   
border-bottom-width: 1px;   
border-left-width: 1px;   
}   
.NOPRINT {   
font-family: "宋体";   
font-size: 9pt;   
}   
 .btn{overflow: hidden;display:inline-block;*display:inline;padding:4px 20px 4px;font-size:14px;line-height:18px;*line-height:20px;color:#fff;text-align:center;vertical-align:middle;cursor:pointer;background-color:#5bb75b;border:1px solid #cccccc;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px; margin-left:2px}
</style>   
 
<script language="JavaScript"> 
$(function () {
	//全选或全不选
	$("#all").click(function(){
		  
    	if(this.checked){   
        	$("#list :checkbox").attr("checked", true);  
    	}else{   
			$("#list :checkbox").attr("checked", false);
    	}   
 	}); 
	//全选  
    $("#selectAll").click(function () {
         $("#list :checkbox,#all").attr("checked", true);  
    });  
	//全不选
    $("#unSelect").click(function () {  
         $("#list :checkbox,#all").attr("checked", false);  
    });  
   
}); 
 
</script>
</head>   
 
<body > 
 
<form method="post" action="<?php echo site_url('sendsms/send')?>" >
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000"   style=" text-align:center;">

  <tr style=" height:40px;">
    <td colspan="11" valign="middle"  > <input type="submit"  name="sendsms" value="发送短信"></td>
    </tr>
  <tr style=" height:35px; font-size:16px;">
    <td colspan="11" align="left">包头-<?php echo $destination_site; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发货日期：<?php echo $start_time; ?>到<?php echo $end_time; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;车号：</td>
    </tr>

  <tr style=" height:35px; font-size:16px; font-weight:bold;">
    <td><input type="checkbox" id="all" >全选</td>
    <td>运单编号</td>
    <td>收货人</td>
    <td>收货人手机</td>
    <td>货物名称</td>
    <td>件数</td>
    <td>运费</td>
    <td>中转费</td>
    <td>结算方式</td>
    <td>代收货款</td>

    <td height="60">备注</td>
  </tr>
<?php  
	$i =0;
	$sum_freight = 0;
	$sum_cod_fee = 0;
	$sum_actual_fee =0;
	$sum_transfer_fee = 0;
	$sum_goods_num  = 0;
	
	
	foreach ($shipping_list as $value){
 ?>

      
   
  <tr style=" height:35px; font-size:16px;" id="list"  >
      <td><input type="checkbox" name="id[]" value='<?php echo $value['id'] ?>' checked="checked"  ></td>
      <td><?php echo $value['shipping_no'] ?>&nbsp;</td>
            <td><?php echo $value['receiver'] ?>&nbsp;</td>
    <td><?php echo $value['receiver_telephone'] ?>&nbsp;</td>
    <td><?php echo $value['goods_name'] ?>&nbsp;</td>
    <td><?php echo $value['goods_num'] ?>&nbsp;</td>
    <td><?php echo $value['freight'] ?>&nbsp;</td>
    <td><?php echo $value['transfer_fee'] ?>&nbsp;</td>
    <td><?php echo $value['payment_mode_name'] ?>&nbsp;</td>
    <td><?php echo $value['cod_fee'] ?>&nbsp;</td>
    <td><?php echo $value['demo'] ?>&nbsp;</td>
  </tr>
  <?php 
  	$i++; 

	$sum_actual_fee += $value['actual_fee'];
	$sum_cod_fee += $value['cod_fee'];
	$sum_freight += $value['freight'];
	$sum_transfer_fee += $value['transfer_fee'];
	$sum_goods_num += $value['goods_num'];
  ?>
  	
 <?php
 
	};
 ?>
   
  

 

 
</table>
<form>
 
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000"   style=" text-align:center;">
<tr style=" height:35px; font-size:16px;">
<td> 
 </td>
</tr>
</table> 
</body>   
</html>  

